/*
* @Author: Josh
* @Date:   2019-01-24 19:44:00
* @Last Modified by:   Administrator
* @Last Modified time: 2019-05-03 19:03:36
*/
'use strict';
require('./index.css');
require('page/common/nav-simple/index.js');
var _mall = require('util/mall.js');

$(function(){
    var type = _mall.getUrlParam('type') || 'default',
        //jq对象
        $element = $('.' + type + '-success');
    
    //为订单支付成功界面添加跳转链接的订单号
    if(type === 'payment'){
        var $orderNumber = $element.find('.order-number'),
            orderNumber = _mall.getUrlParam('orderNumber');
        $orderNumber.attr('href', $orderNumber.attr('href') + orderNumber);
    }
    
    //显示对应的提示语
    $element.show();
    
})